package com.im.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.time.LocalDateTime;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.io.Serializable;
/**
 * <p>
 * 
 * </p>
 *
 * @author xainsir
 * @since 2025-02-14
 */
@Data
@TableName("im_group")

public class ImGroup implements Serializable {
    private static final long serialVersionUID=1L;

    //雪花ID
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    //群组ID : 这个需要生成8-10位永不重复id
    @TableField("group_id")
    private Long groupId;

    //群组名称
    @TableField("name")
    private String name;

    //群主ID
    @TableField("owner_id")
    private Long ownerId;

    //群头像
    @TableField("avatar")
    private String avatar;

    //群组创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime; // 自动填充

    //群组更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime; // 自动填充
}